<%@ page import="union.Funcao" %>

<h3>Dados da Função</h3>

<div class="row-fluid">
	<div class="span4 ${hasErrors(bean: funcaoInstance, field: 'nome', 'error')} required">
		<label for="nome">
			<g:message code="funcao.nome.label" default="Nome" />
			<span class="required-indicator">*</span>
		</label>
		<g:textField name="nome" required="" value="${funcaoInstance?.nome}"/>
	</div>	
	<div class="span4 ${hasErrors(bean: funcaoInstance, field: 'descricao', 'error')} required">
		<label for="descricao">
			<g:message code="funcao.descricao.label" default="Descrição" />
		</label>
		<g:textField name="descricao" value="${funcaoInstance?.descricao}"/>
	</div>	
	<div class="span4 ${hasErrors(bean: funcaoInstance, field: 'cargo', 'error')} required">
		<label for="cargo">
			<g:message code="funcao.cargo.label" default="Cargo" />
			<span class="required-indicator">*</span>
		</label>
		<g:select id="cargo" name="cargo.id" from="${union.Cargo.list()}" optionKey="id" required="" value="${funcaoInstance?.cargo?.id}" class="many-to-one"/>
	</div>	
</div>
